<?php

if (!defined('PUBLIC_HTML'))
{
	exit;
}

try
{
	foreach ($db->sql_get(TABLE_SIMFILES) as $row_simfiles)
	{
		$row_chart = $db->sql_get_row(TABLE_NEWS_CATEGORIES, '*', array(
			'ch_parent_id'	=> $row_simfiles['sm_id'],
		));
		
		$tpl->zone('simfiles', array(
			'TITLE'		=> $row_simfiles['sm_title'],
			'ARTIST'	=> $row_simfiles['sm_artist'],
			'VIEWS'		=> '0',
			'REPLIES'	=> '0',
			'READ'		=> '',
			'EDIT'		=> '',
			'DELETE'	=> ''
		));
	}
} catch (ErrorHandler $e)
{
	$e->print_error('Yeah');
}

?>